# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uhttpmock
pkgver=0.11.0
pkgrel=0
pkgdesc="HTTP web service mocking library"
url="https://gitlab.freedesktop.org/pwithnall/uhttpmock/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	glib-dev
	gobject-introspection-dev
	libsoup3-dev
	meson
	vala
	"
checkdepends="gsettings-desktop-schemas"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/archive/$pkgver/uhttpmock-$pkgver.tar.bz2"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dgtk_doc=false \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6af6029e6b0fe4cf4eafd4dc46d999856a546f5a5273b3e2d05ca5f253f334124ab35ad2f366e451d48cd833b1054f2d1a3a3e3fb136ead1bf112088cd37beda  uhttpmock-0.11.0.tar.bz2
"
